package com.huiyuan.feign;

import com.huiyuan.common.Result;
import com.huiyuan.common.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author huiyuan080
 * @data 2023/5/3
 * @apiNote
 */
@FeignClient(value = "cbt-member")
public interface MemberService {

    /**
     * 修改用户是否用车
     *
     * @param userId
     * @return
     */
    @GetMapping("/member-service/member/addUse/{userId}")
    public Result addUse(@RequestParam("userId") Integer userId);

    /**
     * 查询用户租车信息
     *
     * @param userId
     * @return
     */
    @GetMapping("/member-service/member/isNull/{userId}")
    public User isNull(@RequestParam("userId") Integer userId);


    @PostMapping("/member-service/member/update")
    public void update(@RequestBody User user);

}
